import { CardOptions, Card } from "./../../../model/Card";
import { sgsEvent } from "/src/core/event";
import SGS_Util from '/src/core/utils';

const cardsData: CardOptions[] = [
	{
		id: "SGS.MODULE.BASIC.CARD.SHA",
		name: "杀",
		type: "BASIC",
		color: "HEART",
		point: "1",
		effect() {
			sgsEvent.emit("SGS.CARD_EFFECT.SHA");
		}
	},
	{
		id: "SGS.MODULE.BASIC.CARD.SHAN",
		name: "闪",
		type: "BASIC",
		color: "HEART",
		point: "2",
		effect() {
			sgsEvent.emit("SGS.CARD_EFFECT.SHAN");
		}
	},
	{
		id: "SGS.MODULE.BASIC.CARD.TAO",
		name: "桃",
		type: "BASIC",
		color: "HEART",
		point: "2",
		effect() {
			sgsEvent.emit("SGS.CARD_EFFECT.TAO");
		}
	}
];

export const cards = (SGS_Util.repeat(cardsData, 20)).map(v => new Card(v));
